﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddUser.ascx.cs" Inherits="Hxsoft.AppV1.Admin.UserManage.Controls.AddUser" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="FormTable">
	<tr>
		<td class="FieldBox">用户名</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlUserName" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlUserName" runat="server" ControlToValidate="CtrlUserName" ErrorMessage="字段 [UserName] 不允许为空。" SetFocusOnError="True">*</asp:RequiredFieldValidator>
			<asp:CustomValidator ID="CVUserName" ControlToValidate="CtrlUserName" 
				ErrorMessage="指定的用户名已经存在。" SetFocusOnError="True" runat="server" 
				onservervalidate="CVUserName_ServerValidate"></asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">密码</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlPassword" runat="server" TextMode="Password"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlPassword" runat="server" ControlToValidate="CtrlPassword" ErrorMessage="字段 [Password] 不允许为空。" SetFocusOnError="True">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">确认密码</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
			<asp:CompareValidator ID="CVCtrlConfirmPassword" runat="server" ControlToCompare="CtrlPassword"
				ControlToValidate="CtrlConfirmPassword" Display="None" ErrorMessage="输入的确认密码不符。" SetFocusOnError="True"></asp:CompareValidator></td>
	</tr>
	<tr>
		<td class="FieldBox">安全邮箱</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlEmail" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlEmail" runat="server" ControlToValidate="CtrlEmail" ErrorMessage="安全邮箱不允许为空。" CssClass="RegisterValidator" SetFocusOnError="True">*</asp:RequiredFieldValidator>
			<asp:RegularExpressionValidator ID="REVCtrlEmail" runat="server" ControlToValidate="CtrlEmail" SetFocusOnError="True" Display="None" ErrorMessage="输入的安全邮箱格式不正确。" ValidationExpression="<%# Hxsoft.RegexExtensions.Pattern_Email %>"></asp:RegularExpressionValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">安全提示问题</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlPasswordQuestion" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">安全答案</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlPasswordAnswer" runat="server"></asp:TextBox>
		</td>
	</tr>
</table>